import request from '@/utils/request'

export function isUserHasCourse(courseId) {
    return request({
        url: `/course/course-collect/isUserHasCourse/${courseId}`,
        method: 'get',
    })
}

export function cancelCollect(courseId) {
    return request({
        url: `/course/course-collect/cancelCollect/${courseId}`,
        method: 'delete',
    })
}

export function collectCourse(courseId) {
    return request({
        url: `/course/course-collect/collectCourse/${courseId}`,
        method: 'put',
    })
}